Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

saadc: Clear events_calibratedone before calibration #298

Merged
merged 1 commit into from
Mar 1, 2021

Conversation

Dirbaio
Copy link
Member

@Dirbaio Dirbaio commented Mar 1, 2021

Without this, if you initialize SAADC for a second time, the events_calibratedone is still set from before, so the while loop doesn't wait for calibration to be done. This causes garbage readings if you read immediately after, because calibration is still running.

Without this, if you initialize SAADC for a second time, the events_calibratedone is still set from before, so the while loop doesn't wait for calibration to be done. This causes garbage readings if you read immediately after, because calibration is still running.
@Yatekii
Copy link
Contributor

Yatekii commented Mar 1, 2021

LGTM :)

bors r+

@bors
Copy link
Contributor

bors bot commented Mar 1, 2021

Build succeeded:

@bors bors bot merged commit f39d042 into nrf-rs:master Mar 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants